package dper.study.codes;

import dper.study.codes.elasticsearch.dao.mapper.GitRepoMapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public void sayHello(){
        System.out.println( "Hello" );
    }
    public static void main( String[] args )
    {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[]{"classpath*:applicationContext_es_*.xml"}) ;
        App app = (App) applicationContext.getBean("testAppBean") ;
        app.sayHello();
        GitRepoMapper gitRepoMapper = applicationContext.getBean("gitRepoMapper",GitRepoMapper.class) ;
        System.out.println(gitRepoMapper.getGitRepoModelById(1) );
    }
}
